<template>
  <div>
     <el-form :inline="true">
      <el-form-item>
        <el-input v-model="searchForm.code" placeholder="类型" clearable>
        </el-input>
      </el-form-item>

      <el-form-item>
        <el-select v-model="searchForm.value" clearable placeholder="请选择字典类型">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value">
          </el-option>
        </el-select>
      </el-form-item>

      <el-form-item>
        <el-button @click.native="getDictTypeList">搜索</el-button>
      </el-form-item>

      <el-form-item>
        <el-button type="primary" @click="dictTypeAddDialogVisible = true"  v-if="hasAuth('sys:dict:save')">新增</el-button>
      </el-form-item>
      <el-form-item>
      <el-button type="text">清空</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  name: 'Dict',
  data () {
    return {
      searchForm: {
        value: '0',
        code: ''
      },
      dictTypeAddDialogVisible: false,
      options: [{
        value: '1',
        label: '系统类'
      }, {
        value: '2',
        label: '业务类'
      }]
    }
  },
  methods: {
    getDictTypeList () {

    }
  },
  created () {
    this.getDictTypeList()
  }
}
</script>
<style scoped>

</style>
